package org.sam.swing.treetableImpl;

import org.sam.swing.table.JSTableColumn;

/**
 * tree表格列对象，新增parent属性
 * @author sam
 *
 */
public class JSTableTreeTableColumn extends JSTableColumn {

	private static final long serialVersionUID = -3253069840465455810L;
	
	/**
	 * 父节点的定义对象
	 */
	protected Object parentIdentifier;

	/**
	 * 父节点的定义对象
	 * @return
	 */
	public Object getParentIdentifier() {
		 return (parentIdentifier != null) ? parentIdentifier : getHeaderValue();
	}

	/**
	 * 父节点的定义对象
	 * @param parentIdentifier
	 */
	public void setParentIdentifier(Object parentIdentifier) {
		Object old = this.parentIdentifier;
        this.parentIdentifier = parentIdentifier;
        firePropertyChange("parentIdentifier", old, parentIdentifier);
	} 
	
}
